package com.tidc.seaserverservice.service;

import com.fasterxml.jackson.core.JsonProcessingException;
import com.tidc.seaservermodel.entity.*;
import org.springframework.web.bind.annotation.RequestBody;

import java.sql.SQLException;

/**
 * @author ：冯涛滔
 * @date ：Created in 2020/10/5 11:15
 * @description：
 * @modified By：
 * @version:
 */
public interface RabbitService {
    Fres<Integer> seaAddExperience(UserTask userTask) throws SQLException;
    Fres<Integer> punishmentExperience( UserTask userTask) throws SQLException;
    Fres<Integer> seaAddEmail(Email email);
    Fres<Integer> seaTaskCheckTimeout(UserTask userTask) throws JsonProcessingException;
    Fres<Integer> seaCheckCommitmentOut(Commitment commitment);

    Fres<Integer> clearRabbit(RabbitMessageLog rabbitMessageLog);
}
